package de.baumann.browser.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R
import de.baumann.browser.api.net.vo.gg.ExtractTrans

class ExtractTransAdapter :BaseQuickAdapter<ExtractTrans,BaseViewHolder>(R.layout.item_extract_trans){
    override fun convert(helper: BaseViewHolder, item: ExtractTrans) {
        helper.setText(R.id.address,item.address)
        helper.setText(R.id.time,item.createTime)
        helper.setText(R.id.month,"${item.month} months")
        helper.setText(R.id.amount,"${item.profit} ODIN")
    }
}